﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="套管管材到货登记.aspx.cs" Inherits="syc.Sale.套管管材到货登记" %>

<head runat="server">
    <title></title>
     <style type="text/css">
        .style1
        {
            width: 18%;
        }
        .style2
        {             
             visibility: hidden;
         }
    </style>
</head>
<body>
     <form id="form1" runat="server">
     <script type="text/javascript" language="javascript" src="/common.js"></script>
     <div id="wintop" class="wintop">管材到货登记</div>
        <asp:Panel ID="panel1" runat="server" CssClass="panel" >                     
            <asp:Button ID="Button_Calc" runat="server" Text="计算合计" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Calc_Click" />
            &nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button_Finish" runat="server" CssClass="button" 
                onclick="Button_Finish_Click" Text="保 存" UseSubmitBehavior="False" />
            <span style="width:30px;"></span>
            <asp:Button ID="Button_To" runat="server" CssClass="button" 
                onclick="Button_To_Click" Text="导 出" UseSubmitBehavior="False" />
             &nbsp;   
            <asp:Button ID="Button2" runat="server" CssClass="button" 
                onclick="Button2_Click" Text="返回" UseSubmitBehavior="False" />         
        </asp:Panel>
        <asp:Panel ID="panel2" runat="server" CssClass="panel2" >
            <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
        </asp:Panel>

<script>    putBillHead();</script>

        <table border="0" cellpadding="4" 
          style="width:830px;border-collapse: collapse;font-size:14px; padding:20px;">
	        <tr>
		        <td  colspan="4" align="center" ><u><h2>套管管材到货登记</h2>
                    </u>
                    <asp:SqlDataSource 
                        ID="SqlDataSource3" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                        SelectCommand="SELECT [ID], [名称] FROM [生产单位]"></asp:SqlDataSource>
                    <asp:DropDownList ID="GuanCai" runat="server" DataSourceID="SqlDataSource2" 
                        DataTextField="品名" DataValueField="ID"  CssClass="style2">
                    </asp:DropDownList></td>
	        </tr>
	            
	        <tr>
		        <td style="width:20%;height:32px;" width="8"><span lang="zh-cn">供货</span>单位：<asp:DropDownList 
                        ID="GongHuoDanWei" runat="server" 
                        DataTextField="名称" DataValueField="ID" Width="80px" 
                        DataSourceID="SqlDataSource1">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                        SelectCommand="SELECT [ID], [名称] FROM [原料供货单位]"></asp:SqlDataSource>
                </td>
		        <td style="width:25%;" align="center">
		            <span lang="zh-cn">到货</span>日期：
                    <asp:TextBox ID="RiQi" runat="server" CssClass="intxt1" 
                        Width="110px"></asp:TextBox>
                        <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi').value, document.getElementById('RiQi'));" /></td>
   		           <td align="center" class="style1">
		               车号：<asp:TextBox ID="CheHao" runat="server" Width="100px"></asp:TextBox>
                </td>   
                <td align="center" style="width:20%;">
		               单据号：<font color="#FF0000"><asp:TextBox ID="DanHao" 
                        runat="server" CssClass="intxt1" ForeColor="Red" Width="100px" Text="00"></asp:TextBox>
                    </font></td>   
                     <td style="width:45%;" align="center" width="80">
		               SYC/<span lang="zh-cn">CG-ZJ-</span>17</td>   
		        
	        </tr>
        </table>

   </div>

     <table border="1" cellspacing="0" cellpadding="0" style="width:750px;border-collapse: collapse;font-size:14px;" bordercolor="#666666">
        <tr>
	        <td width="80" height="30" align="center"><span lang="zh-cn">品名</span></td>
	        <td width="80" align="center"><span lang="zh-cn">规格或型号</span></td>	
	        <td width="80" align="center"><span lang="zh-cn">炉号</span></td>       
	        <td width="80" align="center"><span lang="zh-cn">批次</span></td>
	        <td width="80" align="center"><span lang="zh-cn">名义重量(t)</span></td>
	        <td width="80" align="center"><span lang="zh-cn">实际磅重(t)</span></td>
		    <td width="80" align="center"><span lang="zh-cn">支数</span></td>
	        <td width="80" align="center" ><span lang="zh-cn">存放区域</span></td>	       
	        <td width="80" align="center">使用分厂</td>
           
        </tr>
          <tr>
	        <td width="80" height="30"><asp:TextBox ID="R1_C1" runat="server" Width="80" CssClass="blank_center" Text="套管光管" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C2" runat="server" Width="80" CssClass="blank_center" Text="Φ139.7×7.72" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R1_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	      
	        <td width="80"><asp:TextBox ID="R1_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	         
           </tr> 
           <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R2_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R2_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R2_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R2_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R2_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R2_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	       
	        <td width="80"><asp:TextBox ID="R2_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	             
           </tr>
           <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R3_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R3_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R3_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R3_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R3_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R3_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	       
	        <td width="80"><asp:TextBox ID="R3_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	            
           </tr>
           <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R4_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R4_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R4_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R4_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R4_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R4_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	        
	        <td width="80"><asp:TextBox ID="R4_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	           
           </tr>
            <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R5_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R5_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R5_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R5_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R5_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R5_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	      
	        <td width="80"><asp:TextBox ID="R5_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	            
           </tr>
            <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R6_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R6_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R6_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R6_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R6_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R6_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	       
	        <td width="80"><asp:TextBox ID="R6_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	           
           </tr>
            <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R7_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R7_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R7_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R7_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R7_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R7_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	        	
	        <td width="80"><asp:TextBox ID="R7_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	            
           </tr>
            <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R8_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R8_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R8_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R8_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R8_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R8_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	        
	        <td width="80"><asp:TextBox ID="R8_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	           
           </tr>
             <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R9_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R9_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R9_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R9_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R9_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R9_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	       
	        <td width="80"><asp:TextBox ID="R9_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                                        
	             
           </tr>
           <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R10_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R10_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R10_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R10_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R10_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R10_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	        
	        <td width="80"><asp:TextBox ID="R10_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	            
           </tr>
           <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R11_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R11_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R11_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R11_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R11_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R11_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	       
	        <td width="80"><asp:TextBox ID="R11_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	            
           </tr>
            <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R12_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R12_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R12_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R12_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R12_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R12_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	      
	        <td width="80"><asp:TextBox ID="R12_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	          
           </tr>
            <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R13_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R13_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R13_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R13_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R13_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R13_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	       
	        <td width="80"><asp:TextBox ID="R13_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	                       
            </tr>
            <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R14_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R14_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R14_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R14_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R14_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R14_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	      
	        <td width="80"><asp:TextBox ID="R14_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	           
           </tr>
             <tr>
	        <td width="80" height="30">&nbsp;</td>
	        <td width="80">&nbsp;</td>
	        <td width="80"><asp:TextBox ID="R15_C3" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R15_C4" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R15_C5" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R15_C6" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R15_C7" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox> </td>	            
            <td width="80"><asp:TextBox ID="R15_C8" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false"></asp:TextBox></td>	                    
	        
	        <td width="80"><asp:TextBox ID="R15_C10" runat="server" width="80" CssClass="textbox" Text="" ReadOnly="false" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                                        
	            
           </tr>
           <tr>
	        <td colspan="4" align="right">合  计;</td>	       
	        <td width="80"><asp:TextBox ID="R16_C5" runat="server" width="80" 
                    CssClass="blank_center" Text="" ReadOnly="True"  
                    onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R16_C6" runat="server" width="80" 
                    CssClass="blank_center" Text="" ReadOnly="True"  
                    onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	            
            <td width="80"><asp:TextBox ID="R16_C7" runat="server" width="80" 
                    CssClass="blank_center" Text="" ReadOnly="True"  
                    onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>	                    
	        <td width="80">
                &nbsp;</td>	
	        <td width="80">&nbsp;</td>	                                       
	          
           </tr>
       </table>      
 <script>     putBillFoot();</script>
             <asp:Panel ID="Panel_Grid" runat="server" Visible="False">
        <iframe id="gridback" 
                     style="left:133px; top:170px;position:absolute;width:0px;height:0px;z-index: 1; right: 510px;"></iframe>
        <div id="gridframe" class="gridframe" style="left:125px;top:170px;width:650px;">
        
            <div class="gridview">
                <table border="1" width="100%" cellspacing="0" cellpadding="0" 
                    bordercolor="#d0d0d0">
	                <tr>
		                <td class="grid-title">
                            <asp:ImageButton ID="ImageButton_Cancel" 
                                ImageUrl="~/Icons/cancel.gif" AlternateText="关闭" ImageAlign="Right" 
                                runat="server" onclick="ImageButton_Cancel_Click" />
                        </td>
		            </tr>
		            <tr>
		                <td class="grid-back">
                           <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                                SelectCommand="SELECT * FROM [原料] where 品名='套管光管'"></asp:SqlDataSource>
                            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" CssClass="grid" DataKeyNames="ID" 
                                DataSourceID="SqlDataSource2" 
                                GridLines="None" ondatabound="GridView1_DataBound" 
                                onpageindexchanged="GridView1_PageIndexChanged" AllowSorting="True" 
                                UseAccessibleHeader="False" PageSize="10">
                                <PagerSettings Visible="False" />
                                <RowStyle CssClass="grid-row-normal" />
                                <Columns>
                                    <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False"  
                                        ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header"
                                        ReadOnly="True" SortExpression="ID" ItemStyle-Width="80" 
                                        ItemStyle-HorizontalAlign="Center" >
    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle HorizontalAlign="Center" CssClass="grid" Width="80px"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="品名" HeaderText="品名" SortExpression="品名" 
                                        ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header"
                                        ItemStyle-Width="160" >
    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle CssClass="grid" Width="160px"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="钢级" HeaderText="钢级" SortExpression="钢级" 
                                        ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header"
                                        ItemStyle-Width="80" ItemStyle-HorizontalAlign="Center">
    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle CssClass="grid" Width="80px"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="规格" HeaderText="规格" SortExpression="规格" 
                                        ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header"
                                        ItemStyle-Width="160" >
    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle CssClass="grid" Width="160px"></ItemStyle>
                                    </asp:BoundField>


                                    <asp:TemplateField HeaderText="操作" ShowHeader="true" ItemStyle-CssClass="grid" 
                                        HeaderStyle-CssClass="grid-header" ItemStyle-Width="60" 
                                        ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <asp:Button ID="Button1" runat="server" CommandArgument='<%# Eval("ID")+"\t"+Eval("品名")+"\t"+Eval("钢级")+"\t" +Eval("规格")%>'
                                                Text="选择" CssClass="smallbutton" oncommand="Button1_Command" 
                                               />
                                        </ItemTemplate>

    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle HorizontalAlign="Center" CssClass="grid" Width="60px"></ItemStyle>
                                    </asp:TemplateField>
                                </Columns>
                              </asp:GridView>
		                </td>
	                </tr>
	                <tr>
		                <td>
		                    <table width="100%">
		                        <tr>
		                            <td class="pagebar">
                                        <asp:Button ID="Button_Pager_First" runat="server" Text="" ToolTip="首页" 
                                            CssClass="pageturn-first-b" onclick="Pager_Click" CommandName="--" />
                                        <asp:Button ID="Button_Pager_Prev" runat="server" Text="" ToolTip="上一页" 
                                            CssClass="pageturn-prev-b" onclick="Pager_Click" CommandName="-" />
                                        <input type="button" class="page-split" />第<asp:TextBox 
                                            ID="TextBox_Pager" runat="server" CssClass="pageturn" 
                                            ontextchanged="Pager_Click"></asp:TextBox>页<input 
                                            type="button" class="page-split" /><asp:Label 
                                            ID="Label_Pages" runat="server"></asp:Label>
                                        <input type="button" class="page-split" />
                                        
                                        <asp:Button ID="Button_Pager_Next" runat="server" Text="" ToolTip="下一页" 
                                            CssClass="pageturn-next-b" onclick="Pager_Click" CommandName="+" />
                                        <asp:Button ID="Button_Pager_Last" runat="server" Text="" ToolTip="末页" 
                                            CssClass="pageturn-last-b" onclick="Pager_Click" CommandName="++" />
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="Label_Total" runat="server" CssClass="grid_totalrows"></asp:Label>
                                    </td>
                                </tr>
                           </table>

		                </td>
	                </tr>
                </table>
                   </div>
        </div>

    <script>
        var gb = document.getElementById("gridback");
        var gf = document.getElementById("gridframe");
        gb.style.width = gf.clientWidth + "px";
        gb.style.height = gf.clientHeight + "px";
        
    </script>
    
    </asp:Panel>

    </form>
      <script>
          var textboxs = document.getElementsByTagName("input");
          for (var i = 0; i < textboxs.length; i++) {
              if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
                  textboxs[i].onfocus = function(e) { this.select(); };
              }
          }

          document.body.onkeypress = function(e) {
              if (!e) e = window.event;
              var tag = e.srcElement;
              if (!tag) tag = e.target;
              if (tag.className.toLowerCase() != "textbox") return;
              var i;
              if (e.keyCode == 13) {
                  for (i = 0; i < textboxs.length; i++) {
                      if (tag == textboxs[i]) {
                          if (i < textboxs.length - 1) {
                              textboxs[i + 1].focus();
                          }
                          else {
                              textboxs[textboxs.length].focus();
                          }
                      }
                  }
              }
          };   
    </script>
</body>
</html>
